<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">

<f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta http-equiv="X-UA-Compatible" content="EmulateIE8" />
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>New Mantis</title>
            </f:facet>

            <link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/sistema.css" />
            <link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/normalize.css" />

            <style type="text/css">
                .ui-layout-north {
                    z-index:20 !important;
                    overflow:visible !important;
                }

                .ui-layout-north .ui-layout-unit-content {
                    overflow:visible !important;
                }
            </style>
			
			<style type="text/css"> 
				.ui-widget, 
				.ui-widget .ui-widget { 
				font-size: 12px !important; 
				} 
				
				.semBorda tr, .semBorda td {  
				    border: none !important;  
				} 
				
			</style>
			
			<script type="text/javascript" src="#{request.contextPath}/js/calendar.js" charset="iso-8859-1" >
			</script>
			<script type="text/javascript" src="#{request.contextPath}/js/sistema.js" charset="iso-8859-1" >
			</script>
			
        </h:head>


        <h:body>

            <p:layout fullPage="true" >
<!-- 					<p:growl showDetail="true" showSummary="false" autoUpdate="true" redisplay="false" life="1300" ></p:growl> -->
                <p:layoutUnit id="top" position="north" size="60" style="border: none;">
					<h:form>
                
					<h:panelGrid columns="2" cellpadding="3" cellspacing="2">
						<h:outputLabel value="Empresa:" />
						<h:outputText value="Empresa Teste" />

						<h:outputText value="Usuário:"/>
						<h:outputText value="#{sessionScope['NOME_USUARIO']}"/>
					</h:panelGrid>
                
                <div style="text-align: right; position:fixed;">
                	<p:commandLink action="#{sistemaBean.logout()}" ajax="false" value="Sair"></p:commandLink>
                </div>
                
                    </h:form>
                </p:layoutUnit>

                <p:layoutUnit id="bottom" position="south" size="25" style="border: none;">
                	<center>
                    	<h:outputLabel value="Copyright 2013 - HeyXampis" />
                    </center>
                </p:layoutUnit>

                <p:layoutUnit id="left" position="west" size="250" resizable="true" collapsible="true" header="Menu Comercial" minSize="200">
                	<ui:include src="/resources/paginas/templates/menu.xhtml"></ui:include>
                </p:layoutUnit>

                <p:layoutUnit id="right" position="east" size="250" header="Anotações" resizable="false" collapsible="true" style="tex">
					<center>
					<table>
						<tr>
							<td><h:outputLabel value="Titulo" /></td>
						</tr>
						<tr>
							<td><p:inputText size="34"/></td>
						</tr>
						
						<tr>
							<td><h:outputLabel value="Mensagem" /></td>
						</tr>
						<tr>
							<td><p:inputTextarea rows="18" cols="25" maxlength="400"
									counter="contador" counterTemplate="{0} caracteres restantes."/></td>
						</tr>
						<tr>
							<td><h:outputText id="contador" /></td>
						</tr>
						
					</table>
					
					<br />
					
					<p:calendar mode="inline" navigator="true" locale="pt_BR"
							yearRange="c-20:c+50" />
					</center>
			</p:layoutUnit>

                <p:layoutUnit id="center" position="center">
					<p:messages showDetail="true" showSummary="false" autoUpdate="true" redisplay="false"></p:messages>
					<ui:insert name="corpo"></ui:insert>
                </p:layoutUnit>

            </p:layout>

        </h:body>

    </f:view>

</html>